package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.StockDailyMapper;
import com.ruoyi.quartz.domain.StockDaily;
import com.ruoyi.quartz.service.IStockDailyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 股票日行情Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-28
 */
@Service
public class StockDailyServiceImpl implements IStockDailyService 
{
    @Autowired
    private StockDailyMapper stockDailyMapper;

    /**
     * 查询股票日行情
     * 
     * @param id 股票日行情主键
     * @return 股票日行情
     */
    @Override
    public StockDaily selectStockDailyById(Long id)
    {
        return stockDailyMapper.selectStockDailyById(id);
    }

    /**
     * 查询股票日行情列表
     * 
     * @param stockDaily 股票日行情
     * @return 股票日行情
     */
    @Override
    public List<StockDaily> selectStockDailyList(StockDaily stockDaily)
    {
        return stockDailyMapper.selectStockDailyList(stockDaily);
    }

    /**
     * 新增股票日行情
     * 
     * @param stockDaily 股票日行情
     * @return 结果
     */
    @Override
    public int insertStockDaily(StockDaily stockDaily)
    {
        return stockDailyMapper.insertStockDaily(stockDaily);
    }

    /**
     * 修改股票日行情
     * 
     * @param stockDaily 股票日行情
     * @return 结果
     */
    @Override
    public int updateStockDaily(StockDaily stockDaily)
    {
        return stockDailyMapper.updateStockDaily(stockDaily);
    }

    /**
     * 批量删除股票日行情
     * 
     * @param ids 需要删除的股票日行情主键
     * @return 结果
     */
    @Override
    public int deleteStockDailyByIds(String ids)
    {
        return stockDailyMapper.deleteStockDailyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除股票日行情信息
     * 
     * @param id 股票日行情主键
     * @return 结果
     */
    @Override
    public int deleteStockDailyById(Long id)
    {
        return stockDailyMapper.deleteStockDailyById(id);
    }
}
